package Controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import utils.permission.ConstantsUtils;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

@Controller
@RequestMapping("/maincontro")
public class MainController {
    /**
     *
     * 跳转到登录
     */
    @RequestMapping(value="login")
    public String login(HttpServletRequest request,HttpServletResponse response,HttpSession session){
        System.out.println("跳转到登录界面");
        return "/login";
    }


    /**
     *
     * 跳转到服务机构管理
     */
    @RequestMapping(value="toServiceDepart")
    public String ServiceDepart(HttpServletRequest request,HttpServletResponse response,HttpSession session){
        System.out.println("跳转到服务机构管理界面");
        return "/SmartCheck/BasicInfo/ServiceDepartment";
    }

    /**
     * 跳转到新的签到页面
     * @param request
     * @param response
     * @param session
     * @return
     */
    @RequestMapping(value="toSignList")
    public String toSignList(HttpServletRequest request,HttpServletResponse response,HttpSession session){
        System.out.println("跳转新的签到界面");
        return "/SmartCheck/Sign/SignInfo";
    }
    @RequestMapping(value = "toSignAlarmList")
    public String toSignAlarmList(HttpServletRequest request,HttpServletResponse response,HttpSession session){
        System.out.println("跳转到新的异常界面");
        return "/SmartCheck/Sign/SignAlarmInfo";
    }
//    @RequestMapping(value = "toDeviceList")
//    public String toDeviceList(HttpServletRequest request,HttpServletResponse response,HttpSession session){
//        System.out.println("跳转到设备查看界面");
//        return "/SmartCheck/Sign/DeviceInfo";
//    }
    @RequestMapping(value = "toDevice")
    public String toDevice(HttpServletRequest request,HttpServletResponse response,HttpSession session){
        System.out.println("跳转到设备查看界面");
        return "/SmartCheck/Sign/DeviceListInfo";
    }
    @RequestMapping(value = "toArrange")
    public String toDeviceArrange(HttpServletRequest request,HttpServletResponse response,HttpSession session){
        System.out.println("跳转到设备查看界面");
        return "/SmartCheck/Sign/DeviceArrangeInfo";
    }

    @RequestMapping(value = "toUploader")
    public String toUploader(HttpServletRequest request,HttpServletResponse response,HttpSession session){
        System.out.println("跳转到上传查看界面");
        return "/SmartCheck/Sign/Uploader";
    }

    /**
     *
     * 跳转到护理人员信息管理
     */
    @RequestMapping(value="toNurseStaff")
    public String NurseStaff(HttpServletRequest request,HttpServletResponse response,HttpSession session){
        System.out.println("跳转到服务机构管理界面");
        return "/SmartCheck/BasicInfo/NurseStaff";
    }

    /**
     *
     * 跳转到老人信息管理
     */
    @RequestMapping(value="toElderInfo")
    public String ElderInfo(HttpServletRequest request,HttpServletResponse response,HttpSession session){
        System.out.println("跳转到服务机构管理界面");
        return "/SmartCheck/BasicInfo/ElderInfo";
    }

    /**
     *
     * 跳转到派工信息
     */
    @RequestMapping(value="toInfoArrange")
    public String ImportTools(HttpServletRequest request,HttpServletResponse response,HttpSession session){
        System.out.println("跳转到派工信息界面");
        return "/SmartCheck/ArrangeInfo/ArrangeInfo";
    }
    /**
     *
     * 跳转到护理设备管理
     */
    @RequestMapping(value="toNurseEquip")
    public String NurseEquip(HttpServletRequest request,HttpServletResponse response,HttpSession session){
        System.out.println("跳转到护理设备管理界面");
        return "SmartCheck/NurseEquip/deviceInfo";
    }

    /**
     *
     * 跳转到签到签退记录管理
     */
    @RequestMapping(value="toSignInfo")
    public String SignInfo(HttpServletRequest request,HttpServletResponse response,HttpSession session){
        System.out.println("跳转到签到签退记录管理");
        return "/SmartCheck/SignInfo/SignRecord";
    }

    /**
     *
     * 跳转到预警记录管理
     */
    @RequestMapping(value="toAlarmInfo")
    public String AlarmInfo(HttpServletRequest request,HttpServletResponse response,HttpSession session){
        System.out.println("跳转到预警记录管理");
        return "/SmartCheck/SignInfo/AlarmRecord";
    }

    /**
     *
     * 跳转到飞行检查管理
     */
    @RequestMapping(value="toTempCheck")
    public String TempCheck(HttpServletRequest request,HttpServletResponse response,HttpSession session){
        System.out.println("跳转到飞行检查管理");
        return "/SmartCheck/TemporaryCheck/TemporaryCheck";
    }


    /**
     *
     * 跳转到大屏展示界面
     */
    @RequestMapping(value="toDaping")
    public String Daping(HttpServletRequest request,HttpServletResponse response,HttpSession session){
        System.out.println("跳转到大屏展示界面");
        return "/LargeScreen/LargeScreenDisplay";
    }


    /**
     *
     * 跳转到拉卡结算
     */
    @RequestMapping(value="toLKJS")
    public String TongJi(HttpServletRequest request,HttpServletResponse response,HttpSession session){
        System.out.println("跳转到拉卡结算");
        return "/YiBaoMonitor/StatisticalReport/LKJS";
    }

    /**
     *
     * 跳转到规则数据导入
     */
    @RequestMapping(value="toStaticDataImport")
    public String staticDataImport(HttpServletRequest request,HttpServletResponse response,HttpSession session){
        System.out.println("跳转到规则数据导入");
        return "YiBaoMonitor/DataAnalysis/StaticDataImport";
    }

    /**
     * 跳转到规则数据分析
     */
    @RequestMapping(value = "toDataAnalysis")
    public String dataAnalysis(HttpServletRequest request,HttpServletResponse response,HttpSession session){
        return "/YiBaoMonitor/DataAnalysis/DataAnalysis";
    }

    /**
     *
     * 跳转到街镇服务统计
     */
    @RequestMapping(value="toJZFWTJ")
    public String JZFWTJ(HttpServletRequest request,HttpServletResponse response,HttpSession session){
        System.out.println("跳转到街镇服务统计");
        return "YiBaoMonitor/StatisticalReport/JZFWTJ/JZFWTJ";
    }

    /**
     *
     * 跳转到可控范围表
     */
//    @RequestMapping(value="toJZFWTJ")
//    public String JZFWTJ(HttpServletRequest request,HttpServletResponse response,HttpSession session){
//        System.out.println("跳转到街镇服务统计");
//        return "YiBaoMonitor/StatisticalReport/JZFWTJ/JZFWTJ";
//    }


    /**
     *
     * 跳转到角色档案
     */
    @RequestMapping(value="toRole")
    public String Role(HttpServletRequest request,HttpServletResponse response,HttpSession session){
        System.out.println("跳转到角色档案");
        return "/YiBaoMonitor/SysMonitor/RoleMaterials";
    }


    /**
     *
     * 跳转到用户档案
     */
    @RequestMapping(value="toUser")
    public String User(HttpServletRequest request,HttpServletResponse response,HttpSession session){
        System.out.println("跳转到用户档案");
        return "/YiBaoMonitor/SysMonitor/account";
    }



    /**
     *
     * 跳转到系统日志
     */
    @RequestMapping(value="toSys")
    public String Sys(HttpServletRequest request,HttpServletResponse response,HttpSession session){
        System.out.println("跳转到系统日志");
        return "/YiBaoMonitor/SysMonitor/SysInfo";
    }


    @RequestMapping(value="toQiandao")
    public String qian(HttpServletRequest request,HttpServletResponse response,HttpSession session){
        System.out.println("跳转到个人信息界面");
        return "/SmartCheck/qiandao/list";
    }
    @RequestMapping(value="toAlarm")
    public String alarm(HttpServletRequest request,HttpServletResponse response,HttpSession session){
        System.out.println("跳转到个人信息界面");
        return "/SmartCheck/qiandao/alarmlist";
    }

    @RequestMapping(value="toShebei")
    public String shebei(HttpServletRequest request,HttpServletResponse response,HttpSession session){
        System.out.println("跳转到shebei界面");
        return "/SmartCheck/shebei/list";
    }
    @RequestMapping(value="toShebeilog")
    public String shebeilog(HttpServletRequest request,HttpServletResponse response,HttpSession session){
        System.out.println("跳转到shebeilog界面");
        return "/SmartCheck/shebeilog/list";
    }

    /**
     *
     * 跳转到护理员统计
     */
    @RequestMapping(value="toHLYTJ")
    public String HLYTJ(HttpServletRequest request,HttpServletResponse response,HttpSession session){
        System.out.println("跳转到护理员统计");
        return "/YiBaoMonitor/StatisticalReport/FWDXTJ/HLYTJ/HLYTJ";
    }


    /**
     *
     * 跳转到被护理老人统计
     */
    @RequestMapping(value="toBHLLRTJ")
    public String BHLLRTJ(HttpServletRequest request,HttpServletResponse response,HttpSession session){
        System.out.println("跳转到被护理老人统计");
        return "/YiBaoMonitor/StatisticalReport/FWDXTJ/BHLLRTJ/BHLLRTJ";
    }

    /**
     *
     * 跳转到异常预警
     */
    @RequestMapping(value="toYCYJ")
    public String YCYJ(HttpServletRequest request,HttpServletResponse response,HttpSession session){
        System.out.println("跳转到异常预警页面");
        return "/YiBaoMonitor/StatisticalReport/FWDXTJ/YCYJ/YCYJ";
    }
}
